package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type AnalysisUrlReq struct {
	g.Meta `path:"/analysisUrl" tags:"analysisUrl" method:"post" summary:"分析下载链接"`
	Source string `json:"source" v:"required#请选择来源" dc:"来源"`
	Urls   string `json:"urls" v:"required#请输入链接" dc:"链接"`
}
type VedioSourceReq struct {
	g.Meta `path:"/getSourceList" tags:"getSourceList" method:"get" summary:"获取视频来源"`
}

//列表页请求参数
type GatherListParamReq struct {
	g.Meta          `path:"/gather/list" tags:"gatherList" method:"get" summary:"请求采集列表"`
	Source          string `json:"source"  dc:"来源"`
	Title           string `json:"title"  dc:"关键词"`
	StartGatherdate string `json:"start_gatherdate"  dc:"采集时间--开始"`
	EndGatherdate   string `json:"end_gatherdate"  dc:"采集时间--结束"`
	Page            int    `json:"page"  dc:"页码"`
	Pagesize        int    `json:"pagesize"  dc:"每页数量"`
}

//列表页总数量请求参数
type GatherListCountParamReq struct {
	g.Meta          `path:"/gather/listCount" tags:"gatherList" method:"get" summary:"请求采集列表总数量"`
	Source          string `json:"source"  dc:"来源"`
	Title           string `json:"title"  dc:"关键词"`
	StartGatherdate string `json:"start_gatherdate"  dc:"采集时间--开始"`
	EndGatherdate   string `json:"end_gatherdate"  dc:"采集时间--结束"`
}

//获取某一条数据
type GatherInfoReq struct {
	g.Meta `path:"/gather/info" tags:"gatherInfo" method:"get" summary:"单条数据"`
	Id     int `json:"id"  dc:"id"`
}

//下载
type GatherDownReq struct {
	g.Meta `path:"/gather/download" tags:"gatherDownload" method:"post" summary:"下载视频"`
	Ids    []int `json:"ids"  dc:"要下载的id列表"`
}

//入库
type GatherInStorageReq struct {
	g.Meta `path:"/gather/inStorage" tags:"gatherInStorage" method:"post" summary:"入库视频"`
	Ids    []int `json:"ids"  dc:"要入库的id列表"`
}
type GatherDouyinByAuthorReq struct {
	g.Meta `path:"/gather/douyinByAuthor" tags:"douyinByAuthor" method:"post" summary:"根据抖音作者主页分析下载链接"`
	Urls   string `json:"urls" v:"required#请输入链接" dc:"链接"`
}
type KuaihsouByAuthorReq struct {
	g.Meta `path:"/gather/kuaishouByAuthor" tags:"kuaishouByAuthor" method:"post" summary:"根据快手作者主页分析下载链接"`
	Urls   string `json:"urls" v:"required#请输入链接" dc:"链接"`
}
